import 'package:flutter/material.dart';
import 'package:qyou_app/common/base.dart';

class ShopStorePage extends StatelessWidget with Base {
  @override
  Widget build(BuildContext context) {
    List hots = [
      "光德坊",
      "颁政坊",
      "通化坊",
      "安仁坊",
      "兴化坊",
      "延寿坊",
      "靖善坊",
      "宣阳坊",
      "崇仁坊",
      "开明坊",
      "常乐坊",
      "永兴坊"
    ];
    return SizedBox(
        width: dp(350),
        height: dp(120),
        child: ListView.builder(
            scrollDirection: Axis.horizontal,
            itemCount: hots.length,
            itemBuilder: (context, index) {
              return Column(
                crossAxisAlignment: CrossAxisAlignment.center,
                children: <Widget>[
                  Container(
                    width: dp(64),
                    height: dp(100),
                    //padding: EdgeInsets.all(dp(5)),
                    child: Column(
                      crossAxisAlignment: CrossAxisAlignment.center,
                      children: <Widget>[
                        ClipRRect(
                          borderRadius: BorderRadius.circular(dp(30)),
                          //child: Image.network(users[index].avatar),
                          child: Image.asset(
                            'assets/shop/store.png',
                            fit: BoxFit.fill,
                          ),
                        ),
                        Padding(padding: EdgeInsets.all(dp(1))),
                        Container(
                            child: Text(
                          hots[index],
                          style: TextStyle(fontSize: dp(12)),
                          textAlign: TextAlign.center,
                        )),
                      ],
                    ),
                  ),
                ],
              );
            }));
  }
}
